package com.heima.feigns.behavior;

import com.heima.model.behavior.dtos.ApArticleRelationDto;
import com.heima.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign  {


    @GetMapping("/api/v1/behavior_entry/one/{userId}{equipmentId}")
    ApBehaviorEntry findByUserIdOrEquipmentId(@PathVariable("userId") Integer userId, @PathVariable("equipmentId") Integer equipmentId);

    @PostMapping("/api/v1/article_relation/one")
    public Map findApArticleRelation(@RequestBody ApArticleRelationDto dto);

}